/**
 * 
 */
package tk.sunlatus.project.common.constants;

import java.nio.charset.Charset;

/**
 * @author sunlotus
 * 
 */
public interface SunlatusConstants {

    interface SysConstant {
        String isTestKey = "isTest";
        String SYS_CONFIG_NOREFRESH_KEY = "sunlatusSysConfig";
        String PASSWORD = "password";
        // 用户信息保留时间
        long INFO_KEEP_TIME = 180L * 24 * 3600 * 1000;

    }

    interface EncodeConstant {

        String KEY_IDEA = "IDEA";
        String ALGORITHM_IDEA = "IDEA/ECB/ISO10126Padding";
        int KEY_IDEA_SIZE = 128;
        int SALT_LENGTH = 1024;
        Charset CHARSET = Charset.forName("UTF-8");

        String DIGEST_ALGORITHM = "SHA-256";

        String ALGORITHM_PBE_WITH_IDEA = "PBEWithSHAAndIDEA-CBC";
        String ALGORITHM_PBE_WITH_IDEA_WORKMODE = "CBC";
        String ALGORITHM_PBE_WITH_IDEA_FILLTYPE = "ISO10126Padding";
        int KEY_PBE_WITH_IDEA_FILLTYPE = 128;
        int encryptTimes = 100;

        String ALGORITHM_PBE_WITH_DES = "PBEWithMD5AndDES";
        int ENCRIPTY_TIMES = 100;
    }

    interface Page {
        int DEFAULT_PAGE_SIZE = 10;

        int DEFAULT_START = 0;

    }

    interface UserStatus {
        int NORMAL = 0;

        int DEREGISTER = 3;
    }

}
